package com.ryan.security.code;

import com.ryan.security.core.validate.code.ImageCode;
import com.ryan.security.core.validate.code.ValidatorCodeGenerator;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * Created by kaimin on 2/1/2019.
 * time : 22:21
 */
//@Component("imageCodeGenerator")//这里配了的话，就用这里的
public class DemoimageCode implements ValidatorCodeGenerator {
    @Override
    public ImageCode createImageCode(ServletWebRequest request) {
        System.out.println("自定义的图形验证码");
        return null;
    }
}
